age_list = [88,89,90,98,00,99]
res_list = []
for i in age_list:
    if(i == 00):
        res_list.append('200'+str(i))
    else:
        res_list.append('19'+ str(i))
print(res_list)

i = 0
goods_map = {}
shop_car_list = []
while True:
    instr = ''
    if i <= 4:
        try:
            instr = input("录入商品key value格式：")
            if(instr == 'q'):
                print("退出：购物车内容为：",shop_car_list)
                break
            goods_arr = instr.split(' ')
            goods_map[goods_arr[0]] = goods_arr[1]
            i+=1
        except:
            print("请输入正确格式：")
            continue
    else:
        print("录完5个商品：商品信息：",goods_map)
        goods_id = input("请输入要加入购物车的商品编号:")
        if(goods_id == 'q'):
            print("退出：购物车内容为：",shop_car_list)
            break
        if goods_map.get(goods_id) == None:
            print("该商品不存在")
            continue
        else:
            print("加入购物车成功：",goods_map.get(goods_id))
            shop_car_list.insert(len(shop_car_list) - 1,goods_map.get(goods_id))